#!/usr/bin/node

const fs = require('fs'),
      filename = process.argv[2] || __filename;
try{
  let fid = fs.openSync(filename,'r');
  fs.writeSync(1,fs.readFileSync(fid).toString('utf8'));
  fs.closeSync(fid)

}catch(e){
  console.error(e.message);
  process.exit(1);
}
